#ifndef MY_MATERIAL
#define MY_MATERIAL

#include "../tinyxml.h"
#include <GL\glui.h>
#include <iostream>
#include <string>

using namespace std;


class Material
{
private:
	float specular[4];
	float diffuse[4];
	float ambient[4];
	float emission[4];
public:
	float shininess[1];
	
	Material(){shininess[0]=-25.0;};
	int read(TiXmlElement *material);
	void make(){
		glMaterialfv(GL_FRONT, GL_SHININESS, shininess);
		glMaterialfv(GL_FRONT, GL_SPECULAR,  specular);
		glMaterialfv(GL_FRONT, GL_DIFFUSE,   diffuse);
		glMaterialfv(GL_FRONT, GL_AMBIENT,   ambient);
		glMaterialfv(GL_FRONT, GL_EMISSION,   emission);
		};
};

#endif